package fun.lifepoem.jobs.tasks;

import fun.lifepoem.notification.EmailNotificationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.mail.MessagingException;

/**
 * @author Yiwyn
 * @create 2022/7/5 21:10
 */
@Component
@Slf4j
public class DemoTask {

    @Autowired
    EmailNotificationService emailNotificationService;

    private void demoJobs() throws MessagingException {
        log.info("发送邮件开始");
        emailNotificationService.SendTemaplateEmail();
        log.info("发送邮件结束");
    }
}

